Class VillagerWrapper

java.lang.Object
jeresources.jei.villager.VillagerWrapper
All Implemented Interfaces:
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

public class VillagerWrapper extends Object implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
    Draw additional info about the recipe.
    int
     
    List<net.minecraft.world.item.ItemStack>
     
    getPossibleLevels(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
     
    getTrades(int level)
     
    boolean
     
    void
    setFocus(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

    getTooltipStrings, handleClick, handleInput, setIngredients
  • Constructor Details

  • Method Details

    • getTrades

      public TradeList getTrades(int level)
    • getMaxLevel

      public int getMaxLevel()
    • getPossibleLevels

      public List<Integer> getPossibleLevels(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
    • setFocus

      public void setFocus(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
    • getPois

      public List<net.minecraft.world.item.ItemStack> getPois()
    • hasPois

      public boolean hasPois()
    • drawInfo

      public void drawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Draw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategoryExtension.getTooltipStrings(double, double)
      Specified by:
      drawInfo in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      See Also:
      • for a simple class for drawing things.
      • for useful functions.